<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="template.xhtml">
            <ui:define name="mainMenu">
                <ui:include src="mainMenu.xhtml"/>
            </ui:define>
            <ui:define name="navigation">
                <ui:include src="menu.xhtml"/> 
            </ui:define>

            <ui:define name="content">
                <h1>
                    #{bundle.AEditUser}
                </h1>
                <h:form>
                    <h:panelGrid styleClass="panelGrid" columns="2" columnClasses="rightAlign, leftAlign">
                        <h:outputText value="#{bundle.AFirstName}"/>
                        <h:inputText id="name" maxlength="20"
                                     label="#{bundle.AFirstName}"
                                     value="#{editUserBean.user.firstName}">
                        </h:inputText>

                        <h:outputText value="#{bundle.ALastName}"/>
                        <h:inputText id="Suranme" maxlength="25"
                                     label="#{bundle.ALastName}"
                                     value="#{editUserBean.user.lastName}"/>

                        <h:outputText value="#{bundle.AEmail}"/>
                        <h:inputText id="email" maxlength="45"
                                     label="#{bundle.AEmail}"
                                     value="#{editUserBean.user.email}"/>

                        <h:outputText value="#{bundle.ANewPass}"/>
                        <h:inputSecret id="pass" maxlength="32"
                                     label="#{bundle.ANewPass}"
                                     value="#{editUserBean.pass}"/>

                        <h:panelGroup></h:panelGroup>
                        <h:commandButton value="#{bundle.Submit}" action="#{editUserBean.editUser}"/>
                    </h:panelGrid>
                    <h:messages styleClass="errorMsg" > </h:messages>

                </h:form>
            </ui:define>


        </ui:composition>

    </body>
</html>
